package com.niiwoo.civet.mobile.vo.response.credit;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ApiModel("信用借合同参数")
public class CreditContractParmsResponseVO {

	@ApiModelProperty("信用借投资人列表")
	private List<InvestUserVO> investUserList = new ArrayList<InvestUserVO>();
	@ApiModelProperty("信用借借款人ID")
	private String borrowId;
	@ApiModelProperty("信用借借款人姓名")
	private String borrowName;
	@ApiModelProperty("信用借借款金额")
	private BigDecimal borrowAmount;
	@ApiModelProperty("信用借借款期限")
	private Integer deadline;
	@ApiModelProperty("信用借借款年利率")
	private BigDecimal yearRate;
	@ApiModelProperty("信用借借款日利率，逾期利率")
	private BigDecimal penaltyRate;
	@ApiModelProperty("信用借借款还款方式")
	private Byte repaymentType;
	@ApiModelProperty("信用借借款还款方式名称")
	private String repaymentTypeName;
	@ApiModelProperty("信用借借款还款日期")
	private String refundDate;
	@ApiModelProperty("信用借平台服务费")
	private BigDecimal borrowPlatformServiceFee;
	@ApiModelProperty("支付担保人担保费")
	private BigDecimal guaranteeFee;
	@ApiModelProperty("车马费")
	private BigDecimal horseFee;
	@ApiModelProperty("借款合同生效时间")
	private String effectiveDate;

	@ApiModelProperty("信用借担保人列表")
	private List<GuaranteeUserVO> guaranteeUserList = new ArrayList<GuaranteeUserVO>();

	@ApiModelProperty(value = "合同编号",notes = "合同编号为空,则取项目id为合同编号")
	private String contractNo;

	@Getter
	@Setter
	@ApiModel("信用借投资人")
	public static class InvestUserVO {

		@ApiModelProperty("投资人ID")
		private String investId;

		@ApiModelProperty("投资人姓名")
		private String  investName;

		@ApiModelProperty("投资金额")
		private BigDecimal investAmount;

	}
	@Getter
	@Setter
	@ApiModel("信用借担保人")
	public static class GuaranteeUserVO {

		@ApiModelProperty("担保人ID")
		private String guaranteeId;

		@ApiModelProperty("担保人姓名")
		private String  guaranteeName;

		@ApiModelProperty("担保比例")
		private BigDecimal guaranteeOfRate;

	}

}
